package com.ssn.factory.db;

public class Client {
    public static void main(String[] args) {
        IDBFactory factory = new OracleFactory();
        UserDao userDao = new UserDao();
        userDao.setFactory(factory);
        userDao.getAll();
        factory = new MysqlFactory();
        userDao.setFactory(factory);
        userDao.getAll();
    }
}
